<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>学历管理后台</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.4 -->
    <link href="/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- FontAwesome 4.3.0 -->
	<link href="/Public/bootstrap/css/font-awesome.min.css" type="text/css" rel="stylesheet" />
    <!-- Ionicons 2.0.0 --
    <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="/Public/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
    <!-- AdminLTE Skins. Choose a skin from the css/skins
    	folder instead of downloading all of them to reduce the load. -->
    <link href="/Public/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
    <!-- iCheck -->
    <link href="/Public/plugins/iCheck/flat/blue.css" rel="stylesheet" type="text/css" />

    <link href="/Public/personal/css/common.css" rel="stylesheet" type="text/css" />
    <!-- jQuery 2.1.4 -->
    <script src="/Public/plugins/jQuery/jQuery-2.1.4.min.js"></script>
	  <script src="/Public/js/global.js"></script>
    <script src="/Public/js/myFormValidate.js"></script>
    <script src="/Public/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/Public/js/layer/layer-min.js"></script><!-- 弹窗js 参考文档 http://layer.layui.com/-->
    <script src="/Public/js/myAjax.js"></script>
    <script src="/Public/personal/js/common.js"></script>
    <script type="text/javascript">
    function delfunc(obj){
    	layer.confirm('确认删除？', {
    		  btn: ['确定','取消'] //按钮
    		}, function(){
   				$.ajax({
   					type : 'post',
   					url : $(obj).attr('data-url'),
   					data : {act:'del',del_id:$(obj).attr('data-id')},
   					dataType : 'json',
   					success : function(data){
   						if(data==1){
   							layer.msg('操作成功', {icon: 1});
   							$(obj).parent().parent().remove();
   						}else{
   							layer.msg(data, {icon: 2,time: 2000});
   						}
   						layer.closeAll();
   					}
   				})
    		}, function(index){
    			layer.close(index);
    			return false;// 取消
    		}
    	);
    }

    //全选
    function selectAll(name,obj){
    	$('input[name*='+name+']').prop('checked', $(obj).checked);
    }

    function get_help(obj){
        layer.open({
            type: 2,
            title: '帮助手册',
            shadeClose: true,
            shade: 0.3,
            area: ['90%', '90%'],
            content: $(obj).attr('data-url'),
        });
    }

    function delAll(obj,name){
    	var a = [];
    	$('input[name*='+name+']').each(function(i,o){
    		if($(o).is(':checked')){
    			a.push($(o).val());
    		}
    	})
    	if(a.length == 0){
    		layer.alert('请选择删除项', {icon: 2});
    		return;
    	}
    	layer.confirm('确认删除？', {btn: ['确定','取消'] }, function(){
    			$.ajax({
    				type : 'get',
    				url : $(obj).attr('data-url'),
    				data : {act:'del',del_id:a},
    				dataType : 'json',
    				success : function(data){
    					if(data == 1){
    						layer.msg('操作成功', {icon: 1});
    						$('input[name*='+name+']').each(function(i,o){
    							if($(o).is(':checked')){
    								$(o).parent().parent().remove();
    							}
    						})
    					}else{
    						layer.msg(data, {icon: 2,time: 2000});
    					}
    					layer.closeAll();
    				}
    			})
    		}, function(index){
    			layer.close(index);
    			return false;// 取消
    		}
    	);
    }
    </script>
  </head>
  <body style="background-color:#ecf0f5;">

<style>
.school{
  display: none;
  padding: 0 50px 0 50px;
}
.subject{
  display: none;
  padding: 0 50px 0 50px;
}
.lesson{
  display: none;
  padding: 0 50px 0 50px;
}
</style>
<div class="wrapper">
     	<section class="content">
        <div class="row">
  			     <div class="col-md-12">
  			        <div class="box box-info">
                  <form class="form-horizontal" action="<?php echo U('Adult/add_seohandle');?>" method="post">
                    <div class="box-body">
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">成考资讯</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="chengkao"><?php echo ($second_seo['chengkao']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">函授资讯</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="hanshou"><?php echo ($second_seo['hanshou']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">夜大资讯</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="yeda"><?php echo ($second_seo['yeda']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">招生院校</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="yuanxiao"><?php echo ($second_seo['yuanxiao']); ?></textarea>
  	                    </div>
                        <div class="clickschool col-sm-1" style="background:#999;">点我点我</div>
                      </div>
                      <div class="form-group school">
  	                    <label class="control-label col-sm-2">招生简章</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="jianzhang"><?php echo ($second_seo['jianzhang']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group school">
  	                    <label class="control-label col-sm-2">院校新闻</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="xinwen"><?php echo ($second_seo['xinwen']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">招生专业</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="zhuanye"><?php echo ($second_seo['zhuanye']); ?></textarea>
  	                    </div>
                        <div class="clicksubject col-sm-1" style="background:#999;">点我点我</div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">经管类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="jingguan"><?php echo ($second_seo['jingguan']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">文史类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="wenshi"><?php echo ($second_seo['wenshi']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">理学类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="lixue"><?php echo ($second_seo['lixue']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">工科类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="gongke"><?php echo ($second_seo['gongke']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">教育类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="jiaoyu"><?php echo ($second_seo['jiaoyu']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">医学类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="yixue"><?php echo ($second_seo['yixue']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">农学类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="nongxue"><?php echo ($second_seo['nongxue']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">艺术类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="yishu"><?php echo ($second_seo['yishu']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">成考专题</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="zhuanti"><?php echo ($second_seo['zhuanti']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">复习指导</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="fuxi"><?php echo ($second_seo['fuxi']); ?></textarea>
  	                    </div>
                        <div class="clicklesson col-sm-1" style="background:#999;">点我点我</div>
                      </div>
                      <div class="form-group lesson">
  	                    <label class="control-label col-sm-2">网络课程</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="wangluo"><?php echo ($second_seo['wangluo']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group lesson">
  	                    <label class="control-label col-sm-2">面授课程</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="mianshou"><?php echo ($second_seo['mianshou']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group lesson">
  	                    <label class="control-label col-sm-2">复习资料</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="ziliao"><?php echo ($second_seo['ziliao']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">面试求职</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="mianshi"><?php echo ($second_seo['mianshi']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">职位晋升</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="qiuzhi"><?php echo ($second_seo['qiuzhi']); ?></textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
                      	<div class="col-sm-8">
                      	  	<button type="submit"  lass="btn btn-info pull-right" style="background:#337ccc;border:0;border-radius:5px;font-size:16px;color:#fff;">提交</button>
                      	</div>
                      </div>
                    </div>
                  </form>
                </div>
            </div>
  	   </div>
  	</section>
  </div>
  <script>
  $(function(){
    $(".clickschool").on("click",function(){
      if($(".school").css("display") == "none"){
        $(".school").css("display","block");
      }else{
        $(".school").css("display","none");
      }
    })
    $(".clicksubject").on("click",function(){
      if($(".subject").css("display") == "none"){
        $(".subject").css("display","block");
      }else{
        $(".subject").css("display","none");
      }
    })
    $(".clicklesson").on("click",function(){
      if($(".lesson").css("display") == "none"){
        $(".lesson").css("display","block");
      }else{
        $(".lesson").css("display","none");
      }
    })
  })
  </script>
</body>
</html>